home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cxl41.arc / CXLSTR.H < prev    next >
Text File  |  1989-03-05  |  3KB  |  71 lines

  1.  
  2. /*
  3.    ┌──────────────────────────────────────────────────────────────────────────┐
  4.    │                                                                          │
  5.    │  CXLSTR.H - CXL (c) 1987, 1988 by Mike Smedley.                          │
  6.    │                                                                          │
  7.    │  This header file contains function prototypes and definitions for       │
  8.    │  string manipulating functions.                                          │
  9.    │                                                                          │
  10.    └──────────────────────────────────────────────────────────────────────────┘
  11. */
  12.  
  13.  
  14. #if defined(__TURBOC__)                             /*  Turbo C  */
  15.     #if __STDC__
  16.         #define _Cdecl
  17.     #else
  18.         #define _Cdecl  cdecl
  19.     #endif
  20.     #define _Near
  21. #elif defined(__ZTC__)                              /*  Zortech C++  */
  22.     #define _Cdecl
  23.     #define _Near
  24. #elif defined(M_I86) && !defined(__ZTC__)           /*  Microsoft C/QuickC  */
  25.     #if !defined(NO_EXT_KEYS)
  26.         #define _Cdecl  cdecl
  27.         #define _Near   near
  28.     #else
  29.         #define _Cdecl
  30.         #define _Near
  31.     #endif
  32. #elif defined(__POWERC__)                           /*  Power C  */
  33.     #define _Cdecl
  34.     #define _Near
  35. #endif
  36.  
  37.  
  38. /*---------------------------[ Function Prototypes ]-------------------------*/
  39.  
  40. int      _Cdecl cvaltype(int ch,int ctype);
  41. int      _Cdecl strblank(char *str);
  42. char    *_Cdecl strbmatch(char *str,char *strarr[]);
  43. int      _Cdecl strchg(char *str,int oldch,int newch);
  44. char    *_Cdecl strcode(char *str,char *key);
  45. char    *_Cdecl strdel(char *substr,char *str);
  46. int      _Cdecl strichg(char *str,int oldch,int newch);
  47. char    *_Cdecl stridel(char *substr,char *str);
  48. char    *_Cdecl striinc(char *str1,char *str2);
  49. char    *_Cdecl strinc(char *str1,char *str2);
  50. char    *_Cdecl strins(char *instr,char **str,int st_pos);
  51. int      _Cdecl striocc(char *str,int ch);
  52. char    *_Cdecl strltrim(char *str);
  53. int      _Cdecl strmatch(char *str1,char *str2);
  54. char    *_Cdecl strmid(char *str,int st_pos,int num_chars);
  55. int      _Cdecl strocc(char *str,int ch);
  56. char    *_Cdecl strrol(char *str,int count);
  57. char    *_Cdecl strror(char *str,int count);
  58. char    *_Cdecl strsetsz(char **str,int newsize);
  59. char    *_Cdecl strshl(char *str,int count);
  60. char    *_Cdecl strshr(char *str,int count);
  61. char    *_Cdecl strtrim(char *str);
  62. char    *_Cdecl struplow(char *str);
  63. int      _Cdecl touplow(char *str,char *pos,int ch);
  64.  
  65.  
  66. /*-----------------------[ Macro-Function Definitions ]----------------------*/
  67.  
  68. #define strleft(st,nu)      strmid(st,0,nu)
  69. #define strright(st,nu)     strmid(st,strlen(st)-nu,nu)
  70. #define strrtrim(st)        strtrim(st)
  71.